package com.glr.question.dao;

import com.glr.question.entity.Question;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;

/**
 * 试题库数据访问层
 *
 * @author GLoRy
 * @date 2021/6/11 0:45
 */
public interface QuestionDao extends JpaRepositoryImplementation<Question, Integer> {

    /**
     * 根据id查询
     *
     * @param id 试题id
     * @return 试题信息
     */
    @Query
    Question findByQuestionId(Integer id);
}
